View Issue Details

IDProjectCategoryView StatusLast Update
0001360K18X001.00 SKB SWANSW Issuepublic2021-10-13 10:16
Reporter(ALTech) Wooshin Kang Assigned To(ALTech) Wooshin Kang Due Date
PriorityimmediateSeveritys2-severeReproducibilitysometimes
Status closedResolutionfixed 
Summary0001360: No sound after upgrading firmware.
DescriptionI got MP devices and i am working to upgrade firmware from 19.531.16 to 19.531.18.
There is no audio issue after upgrading image.
Please check "Steps To reproduce"

Steps To Reproduce1. upgrade to 19.581.18 using USB, and there is no keep_data in USB stick.
2. box will be reboot and sound is ok.
3. do cold boot, there is no sound
4. do cold boot again, sometime sound ok, sometime no sound
TagsNo tags attached.
Attach Tags

Users monitoring this issue

User List There are no users monitoring this issue.

Activities

(ALTech) Wooshin Kang

2021-10-05 15:20

developer   ~0008374

Attached Log Message.

(SW) River Wong

2021-10-05 16:18

developer   ~0008379

Hi Wooshin,

From the log of kernel, the Wellang is initialized and unmuted.
I think you may need to check the A113X console message and also have Lonnie's help to check if I2S data before/after A113X is normal or not.

(ALTech) Sangmin Choi

2021-10-06 11:46

developer   ~0008392

Last edited: 2021-10-06 11:46

Hi, River,

Do you have any update for this issue?

When the "No Sound" Issue happened, the sound plays when I change the audio output option(Btv <-> External Device) without reboot device.
I'm not sure it is helpful to figure out this issue but please check this issue with above information.

(SW) River Wong

2021-10-07 17:59

developer   ~0008409

Hi Wooshin,

Please help to test the following test image(SU) which should includes the fix for this issue.
http://altserver01.iptime.org//release_by_fxn/swan_test_image/20211007_power_on_off_no_audio_fix/

(SW) River Wong

2021-10-08 12:34

developer   ~0008413

Fix is commited.

commit e52946391cc391808a3e8b382c224f584af60cdf
Author: river wong <river.wong@fii-foxconn.com>
Date: Fri Oct 8 12:33:21 2021 +0800

    Fix sometimes no audio issue (Wellang amplifier is muted) after power off/on.

(SW) River Wong

2021-10-12 16:46

developer   ~0008422

Hi Wooshin,

In the code that has this bug, there are two situations:

Boot up with audio case:
The Wellang driver is muted by default because it needs to avoid pop noise at booting. And there is a flag status to save this status but the status is wrong by default.
And then in Audio HAL initializes, it will write a Wellang driver node to unmute Wellang. But Wellang driver is still waiting for boot-complete, so it just change the flag to unmute (This change the wrong status to right status).
So, after Wellang driver receives boot-complete, it will check the flag and then unmute Wellang amplifier. (In boot-complete, we do not force unmute Wellang amplifier because it may be muted by passthrough mode. So, the flag is to keep the status whether Wellang should be muted or not.)

Boot with no audio case:
Wellang driver is muted by default with a wrong flag status.
And then Audio HAL initializes, it can not write to a driver node because Wellang driver initialization is delay by checking A113X ready. So, the flag still keep in wrong status.
After Wellang driver received boot-complete, it will check the wrong flag and then do not unmute Wellang amplifier.

How we fix it:
1.We change the flag to right default status.
2.To avoid Wellang driver being late to be initialized, we now do not check the A113X ready in Wellang driver. Because Wellang amplifier now is feeded I2S clock by VS-550 instead of A113X. It is no need to check the A113X ready (Originally, this checking is to meet Wellang boot up signal sequence to make sure the I2S clock is stable.)

(ALTech) Wooshin Kang

2021-10-13 10:15

developer   ~0008428

I have done test.
There is no issue during 100 times.

Issue History

Date Modified Username Field Change
2021-10-05 15:17 (ALTech) Wooshin Kang New Issue
2021-10-05 15:17 (ALTech) Wooshin Kang Status new => assigned
2021-10-05 15:17 (ALTech) Wooshin Kang Assigned To => (SW) River Wong
2021-10-05 15:20 (ALTech) Wooshin Kang File Added: BFX-UA300_20211005-155725.zip
2021-10-05 15:20 (ALTech) Wooshin Kang Note Added: 0008374
2021-10-05 16:18 (SW) River Wong Note Added: 0008379
2021-10-06 11:46 (ALTech) Sangmin Choi Note Added: 0008392
2021-10-06 11:46 (ALTech) Sangmin Choi Note Edited: 0008392
2021-10-07 17:59 (SW) River Wong Note Added: 0008409
2021-10-08 12:34 (SW) River Wong Assigned To (SW) River Wong => (ALTech) Wooshin Kang
2021-10-08 12:34 (SW) River Wong Status assigned => resolved
2021-10-08 12:34 (SW) River Wong Resolution open => fixed
2021-10-08 12:34 (SW) River Wong Note Added: 0008413
2021-10-12 16:46 (SW) River Wong Note Added: 0008422
2021-10-13 10:15 (ALTech) Wooshin Kang Note Added: 0008428
2021-10-13 10:16 (ALTech) Wooshin Kang Status resolved => closed